import { RouteRecordRaw } from "vue-router";

// interface NewRouteRecordRaw extends RouteRecordRaw{
//
// }
type NewRouteRecordRaw = RouteRecordRaw & {name: string}

const Home: Array<NewRouteRecordRaw> = [
    {
        path: '/index1',
        component: import("@/views/home/index.vue"),
        name: 'Home1',
        children: [
            {
                path: 'aa1',
                component: () => import("@/views/home/index.vue"),
                name: 'AA1',
                children: [
                    {
                        path: 'BB1',
                        component: () => import("@/views/home/index.vue")
                    }
                ]
            }
        ],
        meta: {
            icon: 'home',
            roles: ['a']
        }
    }
]

export default Home;